package com.zp.ojcodesandbox;

public class CodeSandBoxFactory {

    public static CodeSandBox newInstance(String type){
        switch (type){
            case "java":
                return new DockerCodeSandBox();
            case "cpp":
                return new DockerSandBoxCpp();
            default:
                return new DockerCodeSandBox();
        }
    }
}
